package createModel.singletonMode.lazySingleton;

public class ClientLazySingletonTest {
    public static void main(String[] args) {

        for (int i = 0; i < 30; i++) {
            new Thread(() -> {
                LazySingleton instance1 = LazySingleton.getInstance();
                LazySingleton instance11 = LazySingleton.getInstance1();
                System.out.println("线程不安全"+LazySingleton.getInstance3());
                //System.out.println(instance1.hashCode()+"==="+instance11.hashCode());
            }).start();
        }
    }
}
